package com.cw1.bridge;

/**
 * @Author qiuMi
 * @description 桥接模式 - 客户调用
 * @Date 2022-11-15 22:01
 **/
public class Client {
    public static void main(String[] args) {
        // 折叠手机 (样式 + 品牌)
        FoldPhone foldPhone = new FoldPhone(new XiaoMi());
        foldPhone.open();
        foldPhone.close();
        foldPhone.call();

        System.out.println("-----------");

        FoldPhone foldPhone1 = new FoldPhone(new Vivo());
        foldPhone1.open();
        foldPhone1.close();
        foldPhone1.call();

        System.out.println("------------");
        UpRightPhone upRightPhone = new UpRightPhone(new XiaoMi());
        upRightPhone.open();
        upRightPhone.close();
        upRightPhone.call();
    }
}
